Skip to main content

Toast

Toast.

Interface: IToast.

See the parameters of this component in storybook.

Toast

To change the toast type, use ToastType (success, error, warning, info).

Example

import {type IToast, ToastType} from "@onlyoffice/docspace-plugin-sdk"

const toast: IToast = {
type: ToastType.error,
title: "Wrong file format",
}